package com.example.personnel_oa.dubbo;

import com.example.comment_oa.dubbo.InterviewServiceDubbo;
import com.example.comment_oa.pojos.Interview;
import com.example.personnel_oa.service.InterviewService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

@DubboService(version = "1.0.0",protocol = "${dubbo.protocol.id}",
        application = "${dubbo.application.id}",registry = "${dubbo.registry.id}",
        timeout = 3000)
public class InterviewServiceDubbolmpl implements InterviewServiceDubbo {
    @Resource
    InterviewService interviewService;

    //新增面试安排
    @Override
    public int addInter(Interview interview) {
        int i = interviewService.addInter(interview);
        return i;
    }

    //新增二次面试安排
    @Override
    public int addInters(Interview interview) {
        int i = interviewService.addInters(interview);
        return i;
    }

    //批量新增面试
    @Override
    public int addsmianshi(Interview interview) {
        int addsmianshi = interviewService.addsmianshi(interview);
        return addsmianshi;
    }
}
